/**
 * 
 */
package com.antilia.infomaresme.pages.edit;

import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.odlabs.wiquery.plugins.ckeditor.CKeditorBehavior;

import com.antilia.infomaresme.data.dataobjects.Item;

/**
 * @author Ernesto
 *
 */
public class LongDescriptionPanel extends Panel {

	private static final long serialVersionUID = 1L;

	private TextArea<String> description;
	
	/**
	 * @param id
	 */
	public LongDescriptionPanel(String id, IModel<Item> model) {
		super(id);
		description = new TextArea<String>("description");
		description.setOutputMarkupId(true);
		CKeditorBehavior behavior =new CKeditorBehavior();
		//behavior.getStyleSheet().setSkin("office2003");
		behavior.setResizeEnabled(false);
		behavior.setAutoUpdateElement(true);
		description.add(behavior);
		add(description);
	}

	public TextArea<String> getDescription() {
		return description;
	}

	public void setDescription(TextArea<String> description) {
		this.description = description;
	}

}
